<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PytctbactcompCreateDlg" widgetVar="PytctbactcompCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePytctbactcompTitle}">

            <h:form id="PytctbactcompCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pytctbactcompController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pytctbactcompController.selected.descripcion}" title="#{myBundle.CreatePytctbactcompTitle_descripcion}" required="true" requiredMessage="#{myBundle.CreatePytctbactcompRequiredMessage_descripcion}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_meta}" for="meta" />
                        <p:inputText id="meta" value="#{pytctbactcompController.selected.meta}" title="#{myBundle.CreatePytctbactcompTitle_meta}" required="true" requiredMessage="#{myBundle.CreatePytctbactcompRequiredMessage_meta}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_verificacion}" for="verificacion" />
                        <p:inputText id="verificacion" value="#{pytctbactcompController.selected.verificacion}" title="#{myBundle.CreatePytctbactcompTitle_verificacion}" />

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_supuestos}" for="supuestos" />
                        <p:inputText id="supuestos" value="#{pytctbactcompController.selected.supuestos}" title="#{myBundle.CreatePytctbactcompTitle_supuestos}" required="true" requiredMessage="#{myBundle.CreatePytctbactcompRequiredMessage_supuestos}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_documref}" for="documref" />
                        <p:inputText id="documref" value="#{pytctbactcompController.selected.documref}" title="#{myBundle.CreatePytctbactcompTitle_documref}" required="true" requiredMessage="#{myBundle.CreatePytctbactcompRequiredMessage_documref}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pytctbactcompController.selected.fecharegistro}" title="#{myBundle.EditPytctbactcompTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPytctbactcompRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pytctbactcompController.selected.observaciones}" title="#{myBundle.CreatePytctbactcompTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreatePytctbactcompRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbactcompLabel_pytctbcomponid}" for="pytctbcomponid" />
                        <p:selectOneMenu id="pytctbcomponid" value="#{pytctbactcompController.selected.pytctbcomponid}" required="true" requiredMessage="#{myBundle.EditPytctbactcompRequiredMessage_pytctbcomponid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pytctbcomponController.items}"
                                           var="pytctbcomponidItem"
                                           itemValue="#{pytctbcomponidItem}"
                                           itemLabel="#{pytctbcomponidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pytctbcomponConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pytctbactcompController.saveNew}" value="#{myBundle.Save}" update="display,:PytctbactcompListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PytctbactcompCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PytctbactcompCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
